<!DOCTYPE html>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>华猫商城</title>
		<style></style>
		<link href="../css/jquery.validator.css" rel="stylesheet">
		<link href="../css/common.css" rel="stylesheet">

		<link href="../plugin/userLib/css/user.css" rel="stylesheet">
		<link href="../plugin/userLib/css/userinfo.css" rel="stylesheet">
		<link href="../plugin/userLib/css/my_user.css" rel="stylesheet">
		<link href="../css/base.css" rel="stylesheet">
		<style>
			.n-default .n-left,
			.n-default .n-right {
				margin-top: 32px!important;
			}
		</style>
	</head>

	<body>
		<div id="header"></div>
		<div id="headerBox"></div>
		<!--<div id="nav_menu"></div>-->
		<div class="ZZHT-wrap">
			<div class="ZZHT-header" style="border-bottom: 1px solid #ffffff;">
				<div class="ZZHT-shop-nav">
					<div class="ZZHT-nav-box">
						<a href="#">
							<li class="liselect ZZHT-lfloat ZZHT-nav-boxa">商城商家</li>
						</a>
						<div class="ZZHT-clear"></div>
					</div>
				</div>
				<div class="ZZHT-clear"></div>
			</div>
			<div class="ZZHT-main">
				<div id="underLine_left"></div>
				<div class="ZZHT-content">

					<div class="ZZHT-user-head clearfix">
						<b>购买牌匾</b>
						<span class="user_bread fr">
        当前位置：<span>首页</span>--<span>购买牌匾</span>
						</span>
					</div>
					<div class="mains bz">
						<!--<form action="#" id="recharge" class="nice-validator n-default" novalidate="novalidate">-->
							<div class="form-group">
								<label class="control-label"><span class="text-label">购买牌匾金额：</span><input type="text" name="pay_money" value="10000.000" disabled="disabled"></label>
							</div>
							<button class="sure_btn confirm_pay">确认</button>
						<!--</form>-->
					</div>

				</div>
			</div>
			<div style="clear:both;"></div>
			<br>
		</div>
		<div id="ck3"></div>
		<script src="../js/jquery.min.js"></script>
		<script src="../js/jquery.lazyload.min.js"></script>
		<script src="../js/jquery.validator.js"></script>
		<script src="../js/zh-CN.js"></script>
		<script src="../plugin/layer/layer.js"></script>
		<script src="../js/common.js"></script>
		<script src="../js/common_view.js"></script>
		<script type="text/javascript" src="../js/ljf_base.js"></script>
		<script>
			var money = 10000;
			$('.confirm_pay').click(function(){
				$.ajax({
					type: "post",
					url: SURL + "sktBuyplaque/clickBuyplaque",
					data: {
						"userId":localStorage.userId,
						"totalMoney":money,
					},
					dataType: 'json',
					success: function(res) {
						console.log(res);
						
						if(res.messageCode=="200"){//成功后跳转到支付页
							localStorage.payData = JSON.stringify(res.entity);
							if(res.entity.orderId){
								var orderId = res.entity.orderId;
								layer.msg('下单成功，为您跳转到支付页',{icon:6},function(){
									to_pay(orderId,money,'sktBuyplaque/enterBuyplaque');
								})
							}else{
								layer.msg(res.entity.msg);
							}
						}else{
							layer.msg(res.message);
						}
					}
				});
			})
		</script>
	</body>

</html>